#include "stack.h"
#include <crtdbg.h>


void main()
{
	int i;
	Stack s;
	stack_create(&s);

	for(i = 0; i < 100; i++)
	{
		stack_push(&s, (Pointer)i);
		_CrtCheckMemory();
	}

	stack_destroy(&s);
	_CrtDumpMemoryLeaks();
}